package org.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.example.demo.util.ListLongTypeHandler;

import java.time.LocalDateTime;
import java.util.List;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "meeting_log", autoResultMap = true)
public class MeetingLog {
    /**
     * 序号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 会议主题
     */
    private String meetingTheme;

    /**
     * 会议类型
     */
    private Integer meetingType;

    /**
     * 召开日期时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime meetingDate;

    /**
     * 会议地点
     */
    private String meetingPlace;

    /**
     * 参会人员
     */
    @TableField(value = "meeting_people", typeHandler = ListLongTypeHandler.class)
    private List<Long> meetingPeople;

    /**
     * 会议纪要
     */
    private String filePath;

    /**
     * 状态
     */
    private Integer meetingStatus;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    private LocalDateTime updateTime;

}
